<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'htmlOptions'=>array("class"=>'table table-striped table-hover table-condensed table-white table-detail'),
	'attributes'=>array(
		'id',
		array(
				'label'=>'Type',
				'type'=>'html',
				'value'=>$model->idtype0->lib
		),
		array(
				'label'=>'Domaine',
				'type'=>'html',
				'value'=>$model->iddomaine0->lib
		),
		'nom',
		'descr',
		'valeur',
		'unite',
		array(
				'label'=>'Status',
				'type'=>'html',
				'value'=>$model->status == 1 ? "Validé" : "Non validé",
				'visible'=>Yii::app()->user->admin_grain == 1
		),
	),
)); ?>